package com.iss.demo.service;

import com.iss.demo.dao.ShopCarDao;
import com.iss.demo.entity.ShopCar;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ShopCarService {
    @Autowired
    private ShopCarDao dao;

    public List<ShopCar> selectAllById(Integer u_id){
        return dao.selectAllById(u_id);
    }

    public Integer selectCountById(Integer u_id){
        return dao.selectCountById(u_id);
    }

    public Integer insertShop(ShopCar shopCar){
        return dao.insertShop(shopCar);
    }

    public Integer deleteShopCar(Integer c_id){return dao.deleteShopCar(c_id);}

    public Integer deleteShopCarByUid(Integer u_id){return dao.deleteShopCarByUid(u_id);}
}
